package geometric;

public class GeometricTest {
    public static void main(String[] args) {
        GeometricTest test = new GeometricTest();
        Circle circle = new Circle("red", 1, 1);
        test.displayGeometricObject(circle);
        Circle circle2 = new Circle("red", 1, 2);
        test.displayGeometricObject(circle2);

        System.out.println(test.equalsArea(circle, circle2));


    }

    public boolean equalsArea(GeometricObject A, GeometricObject B) {
        return A.findArea() == B.findArea();
    }

    public void displayGeometricObject(GeometricObject geo) {
        System.out.println(geo.findArea());
    }

}
